package commonInfrastructure.communication;
import javax.mail.*;
 
 public class SMTPAuthenticator extends javax.mail.Authenticator {
    // Replace with your actual unix id
    private static final String SMTP_AUTH_USER = "is3102supergroup@gmail.com";
    // Replace with your actual unix password
    private static final String SMTP_AUTH_PWD = "3102supergroup";

    public SMTPAuthenticator() {
    }

    @Override
    public PasswordAuthentication getPasswordAuthentication() {
        String username = SMTP_AUTH_USER;
        String password = SMTP_AUTH_PWD;
        return new PasswordAuthentication(username, password);
    }
}
